//
//  NetRequest.swift
//  ZJProject
//
//  Created by ZJQian on 2019/7/13.
//  Copyright © 2019 HyBoard. All rights reserved.
//

import UIKit
import Moya
import HandyJSON
import RxSwift

let provider = MoyaProvider<APIService>()

class NetRequest: NSObject {

    static let instance = NetRequest()
    
    func netRequest(api: APIService) -> Observable<Response> {
        return provider.rx.request(api).asObservable()
    }
}
